import { Decimal } from 'decimal.js';
class Calc {
    jia(num1, num2) {
        return new Decimal(num1).add(new Decimal(num2)).toNumber();
    }
    jian(num1, num2) {
        return new Decimal(num1).sub(new Decimal(num2)).toNumber();
    }
    cheng(num1, num2) {
        return new Decimal(num1).mul(new Decimal(num2)).toNumber();
    }
    chu(num1, num2) {
        return new Decimal(num1).div(new Decimal(num2)).toNumber();
    }
}
export const calc = new Calc();